﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BaseNet.Application.System.Authorize.Dto
{
    /// <summary>
    /// 修改密码input
    /// </summary>
    public class ChangePwdInput
    {
        /// <summary>
        /// 原密码
        /// </summary>
        [Required(ErrorMessage = "原密码不能为空"), MinLength(5, ErrorMessage = "原密码不能少于 5 位字符")]
        public string OldPassword { get; set; }
        /// <summary>
        /// 新密码
        /// </summary>
        [Required(ErrorMessage = "新密码不能为空"), MinLength(5, ErrorMessage = "新密码不能少于 5 位字符")]
        public string NewPassword { get; set; }
    }
}
